import request from "@/utils/request.js";
//历史订单分页查询
export const getHistoryOrders=(data)=>request.get("/api/user/order/historyOrders",{params:data})
//取消订单
export const cancelOrder=(id)=>request.put(`/api/user/order/cancel/${id}`)
//查询订单详情
export const getOrderDetail=(id)=>request.get(`/api/user/order/orderDetail/${id}`)
//用户下单
export const createOrder=(data)=>request.post("/api/user/order/submit",data)
//支付订单
export const payOrder=(orderNumber)=>request.get("/api/user/order/payment",{params:{orderNumber}})
